package com.supreme.studyserver.strategy;

public class Singleton {

    private String title = "singleton";

    private Singleton() {
        System.out.println("Singleton");
    }

    private static class Holder {
        private static final Singleton instance = new Singleton();
    }

    public static Singleton getInstance() {
        return Holder.instance;
    }

    public String getTitle() {
        return title;
    }
}
